import Vue from 'vue'
import VueRouter from 'vue-router'
import HomeView from '../views/HomeView.vue'
import Worke from '../views/practice/pcworke'
Vue.use(VueRouter)

const routes = [
  {
    path: '/login',
    name: 'login',
    component: () => import('../views/front/login.vue')
  },
  {
    path: '/',
    name: 'home',
    // route level code-splitting
    component: () => import('../views/front/first.vue'),
    children: [
      {
        path: '/home',
        name: 'home',
        component: HomeView,
      },
      {
        path: '/home/welcome',
        name: 'welcome',
        component: () => import('../views/practice/welcome.vue')
      },
      {
        path: '/worke',
        name: 'worke',
        component: Worke
      },
      {
        path: '/salary',
        name: 'salary',
        component: () => import('../views/practice/pcsalary')
      },
      {
        path: '/drink',
        name: 'drink',
        component: () => import('../views/practice/pcdrink')
      },
      {
        path: '/setmeal',
        name: 'setmeal',
        component: () => import('../views/practice/pcsetmeal')
      },
      {
        path: '/setmeal_drink',
        name: 'setmeal_drink',
        component: () => import('../views/practice/setmealdrink')
      },
      {
        path: '/depot',
        name: 'depot',
        component: () => import('../views/practice/pcdepot')
      },

    ]

  },

]

const router = new VueRouter({
  routes
})

export default router
